<?php
 /**
 +------------------------------------------------------------------------------
 * test
 +------------------------------------------------------------------------------
 * @Version  2.2
 * @Author   WangXian
 * @E-mail    admin@loopx.cn
 * @FileName  testModel.php
 * @Creation  date 2010-11-22 上午12:24:22
 * @Modified  date 2010-11-22 上午12:24:22
 +------------------------------------------------------------------------------
 */
class testModel extends model
{
	function __construct()
	{
		$this->db = new db();
	}
	
	function updateX()
	{
		$sql = "update t_test set name='wx' where id=22";
		return $this->db->query($sql);
	}
	
	function find_data()
	{
		return $this->db->fetch_arrays("select * from t_test limit 5");
	}
}